package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.dubbo.api.db.QuestionNaireApi;
import com.tanhua.dubbo.api.mapper.QuestionNaireMapper;
import com.tanhua.model.db.Questionnaire;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author lamy
 * @version 1.0
 * @ClassName: QuestionNaireApiImpl
 * @date 2021-12-26 21:42:28
 */
//问卷API接口实现类
@DubboService
public class QuestionNaireApiImpl implements QuestionNaireApi {
    @Autowired
    private QuestionNaireMapper questionNaireMapper;
    //查询所有问卷表
    @Override
    public List<Questionnaire> findAll() {
        QueryWrapper queryWrapper = new QueryWrapper<>();
        return questionNaireMapper.selectList(queryWrapper);
    }
}
